package com.zenchn.service.impl;

import com.zenchn.dao.TSysScheduleTaskMapper;
import com.zenchn.dynamic.TSysScheduleTaskDynamicMapper;
import com.zenchn.generic.GenericDao;
import com.zenchn.generic.GenericServiceImpl;
import com.zenchn.model.TSysScheduleTask;
import com.zenchn.model.TSysScheduleTaskExample;
import com.zenchn.service.ScheduleTaskService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static org.mybatis.dynamic.sql.SqlBuilder.*;
import static com.zenchn.dynamic.TSysScheduleTaskDynamicSqlSupport.*;
/**
 * 调度任务 业务实现类
 *
 * @author dingxinfa
 * @date 2020-04-16
 **/
@Service
@Transactional(rollbackFor = Exception.class)
public class ScheduleTaskServiceImpl extends GenericServiceImpl<TSysScheduleTask, String, TSysScheduleTaskExample> implements ScheduleTaskService {

    @Resource
    private TSysScheduleTaskMapper sysScheduleTaskMapper;

    @Resource
    private TSysScheduleTaskDynamicMapper sysScheduleTaskDynamicMapper;

    @Override
    public GenericDao<TSysScheduleTask, String, TSysScheduleTaskExample> getDao() {
        return sysScheduleTaskMapper;
    }
}
